.class public Lcom/direction/hold/ui/SearchActivity;
.super Lcom/direction/hold/ui/FileCursorActivity;


# static fields
.field public static F:Ljava/lang/String;

.field public static G:Z


# instance fields
.field public H:Ljava/util/List;

.field public I:Ljava/util/List;

.field public J:Ljava/util/Map;

.field public K:Lcn/cheln/explorer/ui/SearchListViewHolder;

.field public L:Landroid/os/Handler;

.field public M:Landroid/view/View;

.field protected N:Landroid/text/TextWatcher;

.field private v:Landroid/widget/EditText;

.field private w:Ljava/util/List;

.field private x:Ljava/lang/Boolean;

.field private y:Lcom/direction/hold/ui/i;

.field private z:Landroid/os/Handler;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const-string v0, ""

    sput-object v0, Lcom/direction/hold/ui/SearchActivity;->F:Ljava/lang/String;

    const/4 v0, 0x0

    sput-boolean v0, Lcom/direction/hold/ui/SearchActivity;->G:Z

    return-void
.end method

.method public constructor <init>()V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0}, Lcom/direction/hold/ui/FileCursorActivity;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->H:Ljava/util/List;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->I:Ljava/util/List;

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->J:Ljava/util/Map;

    new-instance v0, Lcom/direction/hold/ui/SearchActivity$1;

    invoke-direct {v0, p0}, Lcom/direction/hold/ui/SearchActivity$1;-><init>(Lcom/direction/hold/ui/SearchActivity;)V

    iput-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->L:Landroid/os/Handler;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->w:Ljava/util/List;

    new-instance v0, Lcom/direction/hold/ui/SearchActivity$2;

    invoke-direct {v0, p0}, Lcom/direction/hold/ui/SearchActivity$2;-><init>(Lcom/direction/hold/ui/SearchActivity;)V

    iput-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->z:Landroid/os/Handler;

    return-void
.end method

.method static synthetic a(Lcom/direction/hold/ui/SearchActivity;)Landroid/os/Handler;
    .locals 1

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->z:Landroid/os/Handler;

    return-object v0
.end method

.method private a(ILjava/lang/String;IILjava/lang/Integer;)V
    .locals 6

    const/high16 v5, 0x106

    const/4 v4, 0x1

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->J:Ljava/util/Map;

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity;->x:Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-nez v1, :cond_1

    invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    :cond_0
    :goto_0
    invoke-interface {v0, p2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    invoke-virtual {p0, p1}, Lcom/direction/hold/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const v1, 0x7f08008f

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, p3}, Landroid/widget/TextView;->setText(I)V

    invoke-virtual {p0}, Lcom/direction/hold/ui/SearchActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity;->J:Ljava/util/Map;

    invoke-interface {v1, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_2

    move v1, p4

    :goto_1
    invoke-virtual {v2, v1}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    invoke-virtual {p0, p1}, Lcom/direction/hold/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const v1, 0x7f080090

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity;->J:Ljava/util/Map;

    invoke-interface {v1, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_3

    const-string v1, "\u2014"

    :goto_2
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity;->J:Ljava/util/Map;

    invoke-interface {v1, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-nez v1, :cond_4

    invoke-virtual {p0}, Lcom/direction/hold/ui/SearchActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1, v5}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    :goto_3
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->J:Ljava/util/Map;

    invoke-interface {v0, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v0, v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->a:Ljava/util/Map;

    invoke-interface {v0, p5, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :goto_4
    invoke-virtual {p0, p1}, Lcom/direction/hold/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/direction/hold/ui/SearchActivity$6;

    invoke-direct {v1, p0, p2, p4, p5}, Lcom/direction/hold/ui/SearchActivity$6;-><init>(Lcom/direction/hold/ui/SearchActivity;Ljava/lang/String;ILjava/lang/Integer;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    invoke-virtual {p0, p1}, Lcom/direction/hold/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/direction/hold/ui/SearchActivity$7;

    invoke-direct {v1, p0, p1}, Lcom/direction/hold/ui/SearchActivity$7;-><init>(Lcom/direction/hold/ui/SearchActivity;I)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V

    return-void

    :cond_1
    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity;->d:Lcom/direction/hold/ui/CommonActivity;

    const-string v2, "file"

    const-class v3, Ljava/lang/Boolean;

    invoke-static {v1, v2, p2, v3}, Lcn/cheln/support/app/e;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v1

    if-nez v1, :cond_0

    invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    goto/16 :goto_0

    :cond_2
    move v1, v5

    goto/16 :goto_1

    :cond_3
    const-string v1, " "

    goto :goto_2

    :cond_4
    const-string v1, "#C82E31"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    goto :goto_3

    :cond_5
    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v0, v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->a:Ljava/util/Map;

    invoke-interface {v0, p5}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_4
.end method

.method public static a(Lcn/cheln/explorer/beans/FileInfo;Lcn/cheln/explorer/beans/FileInfo;Landroid/app/Activity;I)V
    .locals 9

    const/4 v7, 0x0

    const-class v8, Lcom/direction/hold/ui/SearchActivity;

    if-eqz p1, :cond_1

    invoke-virtual {p1}, Lcn/cheln/explorer/beans/FileInfo;->p()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v1

    if-nez v1, :cond_1

    invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    const-class v2, Lcom/direction/hold/ui/SearchActivity;

    if-ne v1, v8, :cond_1

    check-cast p2, Lcom/direction/hold/ui/SearchActivity;

    invoke-static {p1, p2}, Lcom/direction/hold/ui/SearchActivity;->a(Lcn/cheln/explorer/beans/FileInfo;Lcom/direction/hold/ui/SearchActivity;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p0}, Lcn/cheln/explorer/beans/FileInfo;->p()Ljava/io/File;

    move-result-object v1

    sget-object v2, Lcom/direction/hold/ui/PathActivity;->v:Lcom/direction/hold/ui/PathActivity;

    iget-object v2, v2, Lcom/direction/hold/ui/PathActivity;->a:Lcn/cheln/explorer/ds/a/d;

    new-instance v3, Lcn/cheln/explorer/ds/a/e;

    new-instance v4, Lcn/cheln/explorer/beans/FileInfo;

    invoke-direct {v4, v1, p2}, Lcn/cheln/explorer/beans/FileInfo;-><init>(Ljava/io/File;Landroid/content/Context;)V

    invoke-direct {v3, v4, v7}, Lcn/cheln/explorer/ds/a/e;-><init>(Lcn/cheln/explorer/beans/FileInfo;B)V

    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4, v7}, Ljava/util/ArrayList;-><init>(I)V

    :goto_1
    iget-object v1, v3, Lcn/cheln/explorer/ds/a/e;->b:Ljava/lang/Object;

    check-cast v1, Lcn/cheln/explorer/beans/FileInfo;

    invoke-virtual {v1}, Lcn/cheln/explorer/beans/FileInfo;->p()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v5

    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v6

    invoke-virtual {v6}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_2

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v5

    const-string v6, "/mnt"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_2

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v5

    const-string v6, "/"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_2

    invoke-interface {v4, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    new-instance v3, Lcn/cheln/explorer/ds/a/e;

    new-instance v5, Lcn/cheln/explorer/beans/FileInfo;

    invoke-virtual {v1}, Ljava/io/File;->getParentFile()Ljava/io/File;

    move-result-object v1

    invoke-direct {v5, v1, p2}, Lcn/cheln/explorer/beans/FileInfo;-><init>(Ljava/io/File;Landroid/content/Context;)V

    invoke-direct {v3, v5}, Lcn/cheln/explorer/ds/a/e;-><init>(Lcn/cheln/explorer/beans/FileInfo;)V

    goto :goto_1

    :cond_2
    iget-object v3, v2, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v3}, Ljava/util/Stack;->clear()V

    iget-object v3, v2, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    new-instance v5, Lcn/cheln/explorer/ds/a/e;

    new-instance v6, Lcn/cheln/explorer/beans/FileInfo;

    invoke-direct {v6, v1, p2}, Lcn/cheln/explorer/beans/FileInfo;-><init>(Ljava/io/File;Landroid/content/Context;)V

    sget-object v1, Lcn/cheln/explorer/ds/a/b;->a:Ljava/lang/String;

    invoke-direct {v5, v6, v1}, Lcn/cheln/explorer/ds/a/e;-><init>(Lcn/cheln/explorer/beans/FileInfo;Ljava/lang/String;)V

    invoke-virtual {v3, v5}, Ljava/util/Stack;->push(Ljava/lang/Object;)Ljava/lang/Object;

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v1

    const/4 v3, 0x1

    sub-int/2addr v1, v3

    :goto_2
    if-lez v1, :cond_3

    iget-object v3, v2, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-interface {v4, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    invoke-virtual {v3, v5}, Ljava/util/Stack;->push(Ljava/lang/Object;)Ljava/lang/Object;

    add-int/lit8 v1, v1, -0x1

    goto :goto_2

    :cond_3
    sget-object v1, Lcom/direction/hold/ui/PathActivity;->v:Lcom/direction/hold/ui/PathActivity;

    new-instance v2, Lcn/cheln/explorer/ds/a/e;

    invoke-direct {v2, p0, v7}, Lcn/cheln/explorer/ds/a/e;-><init>(Lcn/cheln/explorer/beans/FileInfo;B)V

    invoke-virtual {v1, v2, v7, v7, p3}, Lcom/direction/hold/ui/PathActivity;->a(Lcn/cheln/explorer/ds/a/c;III)V

    sget-object v1, Lcom/direction/hold/ui/SlideActivity;->a:Lcom/direction/hold/ui/SlideActivity;

    iget-object v1, v1, Lcom/direction/hold/ui/SlideActivity;->d:Lcn/cheln/support/v4/pagerui/ViewPagerHelper;

    invoke-virtual {v1}, Lcn/cheln/support/v4/pagerui/ViewPagerHelper;->b()V

    invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    const-class v2, Lcom/direction/hold/ui/SearchActivity;

    if-ne v1, v8, :cond_0

    move-object v0, p2

    check-cast v0, Lcom/direction/hold/ui/SearchActivity;

    move-object v1, v0

    iget-object v1, v1, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v1, v1, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    sput-object v1, Lcom/direction/hold/ui/SearchActivity;->F:Ljava/lang/String;

    invoke-virtual {p2}, Landroid/app/Activity;->finish()V

    goto/16 :goto_0
.end method

.method private static a(Lcn/cheln/explorer/beans/FileInfo;Lcom/direction/hold/ui/SearchActivity;)V
    .locals 3

    const/4 v2, 0x1

    invoke-virtual {p1}, Lcom/direction/hold/ui/SearchActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {p0, v0}, Lcn/cheln/support/app/a;->a(Lcn/cheln/explorer/beans/FileInfo;Landroid/content/Context;)V

    iget-object v0, p1, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v0, v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    invoke-virtual {p1, v0, v2}, Lcom/direction/hold/ui/SearchActivity;->a(Ljava/lang/String;Z)V

    invoke-virtual {p1}, Lcom/direction/hold/ui/SearchActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f0500ba

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    return-void
.end method


# virtual methods
.method protected A()V
    .locals 2

    new-instance v0, Ljava/lang/UnsupportedOperationException;

    const-string v1, "Not supported yet."

    invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public B()Lcn/cheln/explorer/ui/b;
    .locals 1

    const-class v0, Lcom/direction/hold/ui/SearchActivity;

    invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-super {p0, v0}, Lcom/direction/hold/ui/FileCursorActivity;->c(Ljava/lang/String;)Lcn/cheln/explorer/ui/b;

    move-result-object v0

    return-object v0
.end method

.method public final J()Landroid/widget/EditText;
    .locals 1

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->v:Landroid/widget/EditText;

    if-nez v0, :cond_0

    const v0, 0x7f08008b

    invoke-virtual {p0, v0}, Lcom/direction/hold/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->v:Landroid/widget/EditText;

    :cond_0
    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->v:Landroid/widget/EditText;

    return-object v0
.end method

.method public final K()V
    .locals 3

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->v:Landroid/widget/EditText;

    if-nez v0, :cond_0

    const v0, 0x7f08008b

    invoke-virtual {p0, v0}, Lcom/direction/hold/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->v:Landroid/widget/EditText;

    :cond_0
    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->v:Landroid/widget/EditText;

    if-eqz v0, :cond_1

    invoke-virtual {p0}, Lcom/direction/hold/ui/SearchActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V

    const-string v0, "input_method"

    invoke-virtual {p0, v0}, Lcom/direction/hold/ui/SearchActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/inputmethod/InputMethodManager;

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity;->v:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getWindowToken()Landroid/os/IBinder;

    move-result-object v1

    const/4 v2, 0x2

    invoke-virtual {v0, v1, v2}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z

    :cond_1
    return-void
.end method

.method public final L()Landroid/view/View;
    .locals 1

    const v0, 0x7f08008a

    invoke-virtual {p0, v0}, Lcom/direction/hold/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public final a(ILjava/lang/String;IIZ)V
    .locals 6

    const/high16 v5, 0x106

    const v4, 0x7f080090

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->J:Ljava/util/Map;

    invoke-interface {v0, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-ne v0, p5, :cond_0

    :goto_0
    return-void

    :cond_0
    invoke-virtual {p0, p1}, Lcom/direction/hold/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->J:Ljava/util/Map;

    invoke-static {p5}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-interface {v0, p2, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const v0, 0x7f08008f

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/direction/hold/ui/SearchActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    if-eqz p5, :cond_1

    move v3, p3

    :goto_1
    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getColor(I)I

    move-result v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V

    invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    if-eqz p5, :cond_2

    const-string v2, "#C82E31"

    invoke-static {v2}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v2

    :goto_2
    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V

    invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    if-eqz p5, :cond_3

    const/4 v2, 0x0

    :goto_3
    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const-string v1, "\u2014"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v0, v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->b:Ljava/util/Map;

    invoke-interface {v0, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;

    invoke-static {p5}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    iput-object v1, v0, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;->c:Ljava/lang/Boolean;

    if-eqz p5, :cond_4

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v0, v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->a:Ljava/util/Map;

    invoke-static {p4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :goto_4
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/direction/hold/ui/h;

    invoke-direct {v1, p0}, Lcom/direction/hold/ui/h;-><init>(Lcom/direction/hold/ui/SearchActivity;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    goto :goto_0

    :cond_1
    move v3, v5

    goto :goto_1

    :cond_2
    invoke-virtual {p0}, Lcom/direction/hold/ui/SearchActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2, v5}, Landroid/content/res/Resources;->getColor(I)I

    move-result v2

    goto :goto_2

    :cond_3
    const/4 v2, 0x4

    goto :goto_3

    :cond_4
    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v0, v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->a:Ljava/util/Map;

    invoke-static {p4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_4
.end method

.method public final a(Landroid/view/View;Ljava/lang/String;II)V
    .locals 6

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->J:Ljava/util/Map;

    invoke-interface {v0, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    move v5, v0

    :goto_0
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v1

    move-object v0, p0

    move-object v2, p2

    move v3, p3

    move v4, p4

    invoke-virtual/range {v0 .. v5}, Lcom/direction/hold/ui/SearchActivity;->a(ILjava/lang/String;IIZ)V

    return-void

    :cond_0
    const/4 v0, 0x0

    move v5, v0

    goto :goto_0
.end method

.method public a(Lcn/cheln/explorer/beans/FileInfo;)V
    .locals 2

    invoke-virtual {p1}, Lcn/cheln/explorer/beans/FileInfo;->p()Ljava/io/File;

    move-result-object v0

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_1

    invoke-static {p1, p0}, Lcom/direction/hold/ui/SearchActivity;->a(Lcn/cheln/explorer/beans/FileInfo;Lcom/direction/hold/ui/SearchActivity;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p1, Lcn/cheln/explorer/beans/FileInfo;->isDir:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity;->o:Lcn/cheln/explorer/actions/OperationUtil;

    sget-object v1, Lcn/cheln/explorer/actions/OperationUtil;->c:Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-static {p1, v0, p0, v1}, Lcom/direction/hold/ui/SearchActivity;->a(Lcn/cheln/explorer/beans/FileInfo;Lcn/cheln/explorer/beans/FileInfo;Landroid/app/Activity;I)V

    goto :goto_0
.end method

.method public a(Lcn/cheln/explorer/ds/a/c;III)V
    .locals 0

    return-void
.end method

.method public final a(Ljava/lang/String;Z)V
    .locals 3

    const/4 v2, 0x1

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->w:Ljava/util/List;

    new-instance v1, Lcom/direction/hold/ui/i;

    invoke-direct {v1, p0, p1}, Lcom/direction/hold/ui/i;-><init>(Lcom/direction/hold/ui/SearchActivity;Ljava/lang/String;)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->w:Ljava/util/List;

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity;->w:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    sub-int/2addr v1, v2

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/direction/hold/ui/i;

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iput-boolean p2, v1, Lcn/cheln/explorer/ui/SearchListViewHolder;->g:Z

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iput-boolean v2, v1, Lcn/cheln/explorer/ui/SearchListViewHolder;->i:Z

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity;->y:Lcom/direction/hold/ui/i;

    if-eq v1, v0, :cond_1

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity;->y:Lcom/direction/hold/ui/i;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity;->y:Lcom/direction/hold/ui/i;

    invoke-virtual {v1}, Lcom/direction/hold/ui/i;->interrupt()V

    :cond_0
    invoke-virtual {v0}, Lcom/direction/hold/ui/i;->a()Z

    move-result v1

    if-nez v1, :cond_1

    iput-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->y:Lcom/direction/hold/ui/i;

    invoke-virtual {v0}, Lcom/direction/hold/ui/i;->start()V

    :cond_1
    return-void
.end method

.method protected a(Landroid/view/MenuItem;)Z
    .locals 2

    new-instance v0, Ljava/lang/UnsupportedOperationException;

    const-string v1, "Not supported yet."

    invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method protected b(I)V
    .locals 3

    const/4 v2, 0x1

    const/4 v1, 0x0

    new-instance v0, Lcn/cheln/explorer/actions/EqualCheck;

    invoke-direct {v0, v1, v1}, Lcn/cheln/explorer/actions/EqualCheck;-><init>(II)V

    sget-object v1, Lcn/cheln/explorer/actions/OperationUtil;->b:Ljava/util/List;

    invoke-static {v1, v0}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    invoke-virtual {v0}, Lcn/cheln/explorer/actions/EqualCheck;->a_()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->d:Lcom/direction/hold/ui/CommonActivity;

    const v1, 0x7f050045

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    :goto_0
    return-void

    :cond_0
    sget-object v0, Lcom/direction/hold/ui/SlideActivity;->a:Lcom/direction/hold/ui/SlideActivity;

    iput p1, v0, Lcom/direction/hold/ui/SlideActivity;->c:I

    sget-object v0, Lcom/direction/hold/ui/PathActivity;->v:Lcom/direction/hold/ui/PathActivity;

    invoke-virtual {v0}, Lcom/direction/hold/ui/PathActivity;->D()V

    sput-boolean v2, Lcom/direction/hold/ui/SearchActivity;->G:Z

    sget-object v0, Lcom/direction/hold/ui/SlideActivity;->a:Lcom/direction/hold/ui/SlideActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SlideActivity;->d:Lcn/cheln/support/v4/pagerui/ViewPagerHelper;

    invoke-virtual {v0}, Lcn/cheln/support/v4/pagerui/ViewPagerHelper;->b()V

    invoke-virtual {p0}, Lcom/direction/hold/ui/SearchActivity;->finish()V

    goto :goto_0
.end method

.method protected b(IILcn/cheln/explorer/ds/a/c;)V
    .locals 2

    new-instance v0, Ljava/lang/UnsupportedOperationException;

    const-string v1, "Not supported yet."

    invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method protected b(Lcn/cheln/explorer/ds/a/c;III)V
    .locals 2

    new-instance v0, Ljava/lang/UnsupportedOperationException;

    const-string v1, "Not supported yet."

    invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public final c()Landroid/view/View;
    .locals 1

    const/4 v0, 0x0

    return-object v0
.end method

.method public final d(Ljava/lang/String;)V
    .locals 1

    const/4 v0, 0x1

    invoke-virtual {p0, p1, v0}, Lcom/direction/hold/ui/SearchActivity;->a(Ljava/lang/String;Z)V

    return-void
.end method

.method public finish()V
    .locals 5

    const-string v4, "file"

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->J:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    iget-object v2, p0, Lcom/direction/hold/ui/SearchActivity;->d:Lcom/direction/hold/ui/CommonActivity;

    const-string v3, "file"

    invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v0

    invoke-static {v2, v4, v3, v0}, Lcn/cheln/support/app/e;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v0, v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    sput-object v0, Lcom/direction/hold/ui/SearchActivity;->F:Ljava/lang/String;

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    invoke-virtual {v0}, Lcn/cheln/explorer/ui/SearchListViewHolder;->e()V

    sget-object v0, Lcn/cheln/explorer/cpnt/adapter/d;->a:Ljava/util/Map;

    invoke-interface {v0, p0}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->d:Lcom/direction/hold/ui/CommonActivity;

    const-string v1, "file"

    const-string v1, "Key_Search_Sort"

    iget-object v2, p0, Lcom/direction/hold/ui/SearchActivity;->e:Lcn/cheln/explorer/actions/sort/a;

    invoke-interface {v2}, Lcn/cheln/explorer/actions/sort/a;->c()Ljava/lang/Object;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v4, v1, v2}, Lcn/cheln/support/app/e;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V

    invoke-super {p0}, Lcom/direction/hold/ui/FileCursorActivity;->finish()V

    return-void
.end method

.method protected k()V
    .locals 0

    return-void
.end method

.method public l()V
    .locals 2

    const/4 v1, 0x0

    new-instance v0, Lcn/cheln/explorer/actions/sort/DBSort;

    invoke-direct {v0, v1, v1}, Lcn/cheln/explorer/actions/sort/DBSort;-><init>(II)V

    iput-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->e:Lcn/cheln/explorer/actions/sort/a;

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 7

    const/4 v3, -0x1

    const-class v6, Ljava/lang/Integer;

    const-class v5, Lcom/direction/hold/ui/SearchActivity;

    const-string v4, "file"

    invoke-super {p0, p1}, Lcom/direction/hold/ui/FileCursorActivity;->onCreate(Landroid/os/Bundle;)V

    const-string v0, "file"

    const-string v0, "KEY_SORT_SEARCH_POLICY"

    const-class v1, Ljava/lang/Integer;

    invoke-static {p0, v4, v0, v6}, Lcn/cheln/support/app/e;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    const-string v1, "file"

    const-string v1, "KEY_SORT_SEARCH_SEQ"

    const-class v2, Ljava/lang/Integer;

    invoke-static {p0, v4, v1, v6}, Lcn/cheln/support/app/e;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v2

    if-eq v2, v3, :cond_0

    iget-object v2, p0, Lcom/direction/hold/ui/SearchActivity;->e:Lcn/cheln/explorer/actions/sort/a;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    invoke-interface {v2, v0}, Lcn/cheln/explorer/actions/sort/a;->a(I)V

    :cond_0
    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-eq v0, v3, :cond_1

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->e:Lcn/cheln/explorer/actions/sort/a;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-interface {v0, v1}, Lcn/cheln/explorer/actions/sort/a;->b(I)V

    :cond_1
    const-class v0, Lcom/direction/hold/ui/SearchActivity;

    invoke-virtual {v5}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v2, p0, Lcom/direction/hold/ui/SearchActivity;->M:Landroid/view/View;

    invoke-direct {v1, v2, p0}, Lcn/cheln/explorer/ui/SearchListViewHolder;-><init>(Landroid/view/View;Lcom/direction/hold/ui/SearchActivity;)V

    invoke-virtual {p0, v0, v1}, Lcom/direction/hold/ui/SearchActivity;->a(Ljava/lang/String;Lcn/cheln/explorer/ui/b;)Lcn/cheln/explorer/ui/b;

    const-class v0, Lcom/direction/hold/ui/SearchActivity;

    invoke-virtual {v5}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/direction/hold/ui/SearchActivity;->c(Ljava/lang/String;)Lcn/cheln/explorer/ui/b;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/ui/SearchListViewHolder;

    iput-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->H:Ljava/util/List;

    const v1, 0x7f08008c

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->H:Ljava/util/List;

    const v1, 0x7f08008d

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->H:Ljava/util/List;

    const v1, 0x7f08000b

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->H:Ljava/util/List;

    const v1, 0x7f08000a

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->H:Ljava/util/List;

    const v1, 0x7f08008e

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->H:Ljava/util/List;

    const v1, 0x7f08000d

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method public onMenuItemClick(Landroid/view/MenuItem;)Z
    .locals 4

    const-string v3, "file"

    invoke-super {p0, p1}, Lcom/direction/hold/ui/FileCursorActivity;->onMenuItemClick(Landroid/view/MenuItem;)Z

    move-result v0

    const-string v1, "file"

    const-string v1, "KEY_SORT_SEARCH_POLICY"

    iget-object v2, p0, Lcom/direction/hold/ui/SearchActivity;->e:Lcn/cheln/explorer/actions/sort/a;

    invoke-interface {v2}, Lcn/cheln/explorer/actions/sort/a;->a()I

    move-result v2

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-static {p0, v3, v1, v2}, Lcn/cheln/support/app/e;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V

    const-string v1, "file"

    const-string v1, "KEY_SORT_SEARCH_SEQ"

    iget-object v2, p0, Lcom/direction/hold/ui/SearchActivity;->e:Lcn/cheln/explorer/actions/sort/a;

    invoke-interface {v2}, Lcn/cheln/explorer/actions/sort/a;->b()I

    move-result v2

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-static {p0, v3, v1, v2}, Lcn/cheln/support/app/e;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V

    return v0
.end method

.method public onPrepareOptionsMenu(Landroid/view/Menu;)Z
    .locals 4

    const v3, 0x7f0800b9

    const v1, 0x7f0800b4

    const/4 v2, 0x1

    const v0, 0x7f0800ba

    invoke-interface {p1, v0}, Landroid/view/Menu;->removeItem(I)V

    const v0, 0x7f0800bb

    invoke-interface {p1, v0}, Landroid/view/Menu;->removeItem(I)V

    const v0, 0x7f0800bc

    invoke-interface {p1, v0}, Landroid/view/Menu;->removeItem(I)V

    invoke-interface {p1, v1}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    invoke-interface {v0}, Landroid/view/MenuItem;->getSubMenu()Landroid/view/SubMenu;

    move-result-object v0

    invoke-interface {v0, v3}, Landroid/view/SubMenu;->removeItem(I)V

    invoke-interface {p1, v1}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    invoke-interface {v0}, Landroid/view/MenuItem;->getSubMenu()Landroid/view/SubMenu;

    move-result-object v0

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity;->e:Lcn/cheln/explorer/actions/sort/a;

    invoke-interface {v1}, Lcn/cheln/explorer/actions/sort/a;->a()I

    move-result v1

    packed-switch v1, :pswitch_data_0

    :goto_0
    return v2

    :pswitch_0
    const v1, 0x7f0800b6

    invoke-interface {v0, v1}, Landroid/view/SubMenu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    invoke-interface {v0, v2}, Landroid/view/MenuItem;->setChecked(Z)Landroid/view/MenuItem;

    goto :goto_0

    :pswitch_1
    const v1, 0x7f0800b7

    invoke-interface {v0, v1}, Landroid/view/SubMenu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    invoke-interface {v0, v2}, Landroid/view/MenuItem;->setChecked(Z)Landroid/view/MenuItem;

    goto :goto_0

    :pswitch_2
    const v1, 0x7f0800b8

    invoke-interface {v0, v1}, Landroid/view/SubMenu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    invoke-interface {v0, v2}, Landroid/view/MenuItem;->setChecked(Z)Landroid/view/MenuItem;

    goto :goto_0

    :pswitch_3
    invoke-interface {v0, v3}, Landroid/view/SubMenu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    invoke-interface {v0, v2}, Landroid/view/MenuItem;->setChecked(Z)Landroid/view/MenuItem;

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_2
        :pswitch_1
        :pswitch_3
    .end packed-switch
.end method

.method public p()V
    .locals 8

    const/4 v7, 0x4

    const/16 v4, 0x8

    const/4 v6, 0x1

    const/4 v5, 0x0

    const v3, 0x7f08008a

    invoke-static {p0}, Lcn/cheln/explorer/util/SDcardCheck;->a(Landroid/app/Activity;)Z

    move-result v0

    if-eqz v0, :cond_1

    sget-object v0, Lcn/cheln/explorer/util/SDcardCheck;->d:Landroid/view/View;

    iput-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->h:Landroid/view/View;

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->c:Landroid/widget/ListView;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->c:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->getCount()I

    move-result v0

    if-gtz v0, :cond_0

    :cond_2
    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->C:Lcn/cheln/explorer/ui/b;

    if-nez v0, :cond_3

    invoke-virtual {p0}, Lcom/direction/hold/ui/SearchActivity;->B()Lcn/cheln/explorer/ui/b;

    move-result-object v0

    iput-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->C:Lcn/cheln/explorer/ui/b;

    :cond_3
    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->C:Lcn/cheln/explorer/ui/b;

    invoke-virtual {v0}, Lcn/cheln/explorer/ui/b;->a()V

    sget-boolean v0, Lcom/direction/hold/ui/SearchActivity;->G:Z

    if-eqz v0, :cond_4

    sput-boolean v5, Lcom/direction/hold/ui/SearchActivity;->G:Z

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    sget-object v1, Lcom/direction/hold/ui/SearchActivity;->F:Ljava/lang/String;

    iput-object v1, v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    :cond_4
    invoke-virtual {p0}, Lcom/direction/hold/ui/SearchActivity;->J()Landroid/widget/EditText;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_a

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v1, v1, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    if-eqz v1, :cond_a

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v1, v1, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_a

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v1, v1, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v0, v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    invoke-virtual {p0, v0, v6}, Lcom/direction/hold/ui/SearchActivity;->a(Ljava/lang/String;Z)V

    :cond_5
    :goto_1
    const v0, 0x7f080087

    invoke-virtual {p0, v0}, Lcom/direction/hold/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {p0}, Lcom/direction/hold/ui/SearchActivity;->J()Landroid/widget/EditText;

    const v1, 0x7f080084

    invoke-virtual {p0, v1}, Lcom/direction/hold/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    if-eqz v1, :cond_6

    invoke-virtual {v1}, Landroid/view/View;->getVisibility()I

    move-result v2

    if-nez v2, :cond_6

    if-eqz v0, :cond_6

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v2

    if-ne v2, v4, :cond_6

    invoke-virtual {v1, v4}, Landroid/view/View;->setVisibility(I)V

    invoke-virtual {v0, v5}, Landroid/view/View;->setVisibility(I)V

    :cond_6
    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->N:Landroid/text/TextWatcher;

    if-nez v0, :cond_7

    new-instance v0, Lcom/direction/hold/ui/SearchActivity$3;

    invoke-direct {v0, p0}, Lcom/direction/hold/ui/SearchActivity$3;-><init>(Lcom/direction/hold/ui/SearchActivity;)V

    iput-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->N:Landroid/text/TextWatcher;

    :cond_7
    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->c:Landroid/widget/ListView;

    new-instance v1, Lcom/direction/hold/ui/SearchActivity$4;

    invoke-direct {v1, p0}, Lcom/direction/hold/ui/SearchActivity$4;-><init>(Lcom/direction/hold/ui/SearchActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V

    invoke-virtual {p0}, Lcom/direction/hold/ui/SearchActivity;->J()Landroid/widget/EditText;

    move-result-object v0

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity;->N:Landroid/text/TextWatcher;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    const v0, 0x7f080085

    invoke-virtual {p0, v0}, Lcom/direction/hold/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_8

    const v0, 0x7f080085

    invoke-virtual {p0, v0}, Lcom/direction/hold/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V

    :cond_8
    invoke-virtual {p0, v3}, Lcom/direction/hold/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_9

    invoke-virtual {p0, v3}, Lcom/direction/hold/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/direction/hold/ui/SearchActivity$5;

    invoke-direct {v1, p0}, Lcom/direction/hold/ui/SearchActivity$5;-><init>(Lcom/direction/hold/ui/SearchActivity;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    :cond_9
    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->d:Lcom/direction/hold/ui/CommonActivity;

    const-string v1, "file"

    const-string v2, "cateSetted"

    const-class v3, Ljava/lang/Boolean;

    invoke-static {v0, v1, v2, v3}, Lcn/cheln/support/app/e;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    iput-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->x:Ljava/lang/Boolean;

    const v1, 0x7f08008c

    const-string v2, "folder"

    const v3, 0x7f0500c1

    const v4, 0x7f04000d

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    move-object v0, p0

    invoke-direct/range {v0 .. v5}, Lcom/direction/hold/ui/SearchActivity;->a(ILjava/lang/String;IILjava/lang/Integer;)V

    const v1, 0x7f08000a

    const-string v2, "image"

    const v3, 0x7f05002b

    const v4, 0x7f04000e

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    move-object v0, p0

    invoke-direct/range {v0 .. v5}, Lcom/direction/hold/ui/SearchActivity;->a(ILjava/lang/String;IILjava/lang/Integer;)V

    const v1, 0x7f08008d

    const-string v2, "audio"

    const v3, 0x7f050029

    const v4, 0x7f04000f

    const/4 v0, 0x2

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    move-object v0, p0

    invoke-direct/range {v0 .. v5}, Lcom/direction/hold/ui/SearchActivity;->a(ILjava/lang/String;IILjava/lang/Integer;)V

    const v1, 0x7f08000b

    const-string v2, "video"

    const v3, 0x7f05002a

    const v4, 0x7f040010

    const/4 v0, 0x3

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    move-object v0, p0

    invoke-direct/range {v0 .. v5}, Lcom/direction/hold/ui/SearchActivity;->a(ILjava/lang/String;IILjava/lang/Integer;)V

    const v1, 0x7f08000d

    const-string v2, "apk"

    const v3, 0x7f0500c2

    const v4, 0x7f040011

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    move-object v0, p0

    invoke-direct/range {v0 .. v5}, Lcom/direction/hold/ui/SearchActivity;->a(ILjava/lang/String;IILjava/lang/Integer;)V

    const v1, 0x7f08008e

    const-string v2, "doc"

    const v3, 0x7f0500b1

    const v4, 0x7f040012

    const/4 v0, 0x5

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    move-object v0, p0

    invoke-direct/range {v0 .. v5}, Lcom/direction/hold/ui/SearchActivity;->a(ILjava/lang/String;IILjava/lang/Integer;)V

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->x:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->d:Lcom/direction/hold/ui/CommonActivity;

    const-string v1, "file"

    const-string v2, "cateSetted"

    invoke-static {v6}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v3

    invoke-static {v0, v1, v2, v3}, Lcn/cheln/support/app/e;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V

    goto/16 :goto_0

    :cond_a
    invoke-virtual {p0, v3}, Lcom/direction/hold/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_5

    invoke-virtual {p0, v3}, Lcom/direction/hold/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v7}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_1
.end method

.method public s()Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/UnsupportedOperationException;

    const-string v1, "Not supported yet."

    invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public setPageView(Landroid/view/View;)V
    .locals 0

    iput-object p1, p0, Lcom/direction/hold/ui/SearchActivity;->M:Landroid/view/View;

    return-void
.end method

.method public v()V
    .locals 2

    invoke-static {p0}, Lcn/cheln/explorer/util/SDcardCheck;->a(Landroid/app/Activity;)Z

    move-result v0

    if-eqz v0, :cond_0

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->C:Lcn/cheln/explorer/ui/b;

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Object;

    invoke-virtual {v0, v1}, Lcn/cheln/explorer/ui/b;->a([Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->C:Lcn/cheln/explorer/ui/b;

    invoke-virtual {v0}, Lcn/cheln/explorer/ui/b;->c()V

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v0, v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    const/4 v1, 0x1

    invoke-virtual {p0, v0, v1}, Lcom/direction/hold/ui/SearchActivity;->a(Ljava/lang/String;Z)V

    goto :goto_0
.end method

.method public x()V
    .locals 2

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->e:Lcn/cheln/explorer/actions/sort/a;

    invoke-interface {v0}, Lcn/cheln/explorer/actions/sort/a;->c()Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->f:Ljava/lang/String;

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v0, v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    const/4 v1, 0x1

    invoke-virtual {p0, v0, v1}, Lcom/direction/hold/ui/SearchActivity;->a(Ljava/lang/String;Z)V

    return-void
.end method

.method protected z()Ljava/lang/String;
    .locals 1

    sget-boolean v0, Lcom/direction/hold/ui/SearchActivity;->G:Z

    if-nez v0, :cond_0

    const-string v0, ""

    :goto_0
    return-object v0

    :cond_0
    const v0, 0x7f050099

    invoke-virtual {p0, v0}, Lcom/direction/hold/ui/SearchActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method
